﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace BootstrapAdmin.DataAccess.Models;

/// <summary>
/// 警报记录信息
/// </summary>
[Table("ops_alarm_record")]
public class AlarmRecord
{
    [Key]
    public int Id { get; set; }

    /// <summary>
    /// 工站
    /// </summary>
    [NotNull]
    [Required]
    [Display(Name = "工站")]
    public string? Station { get; set; }

    /// <summary>
    /// 警报分类，Fixture（夹具）、Robot（机器人）、Welder（焊机）
    /// </summary>
    [NotNull]
    [Required]
    [Display(Name = "警报分类")]
    public string? Classify { get; set; }

    /// <summary>
    /// 描述
    /// </summary>
    [Display(Name = "描述")]
    public string? Desc { get; set; }

    /// <summary>
    /// 警报详情
    /// </summary>
    [Display(Name = "详情")]
    public string? Detail { get; set; }

    /// <summary>
    /// 记录时间
    /// </summary>
    [Display(Name = "记录时间")]
    public DateTime CreatedAt { get; set; }
}
